arithmetic mean using discrete data